<%@ page import="hp.com.entity.Users" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
    String path = request.getContextPath();
    request.setAttribute("path",path);
    Object msg = request.getAttribute("msg");
    request.setAttribute("msg", msg);
    Users userSession =(Users) request.getSession().getAttribute("userSession");
%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link type="text/css" rel="stylesheet" href="${path}/jbs/css/style.css"/>
    <script src="${path}/jbs/js/iepng.js" type="text/javascript"></script>
    <script type="text/javascript">
        EvPNG.fix('div, ul, img, li, input, a');
    </script>

    <script type="text/javascript" src="${path}/jbs/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="${path}/jbs/js/menu.js"></script>

    <script type="text/javascript" src="${path}/jbs/js/select.js"></script>

    <link rel="icon" href="<%=path%>/jbs/images/ico.ico" type="image/x-icon">
    <title>订单管理-青鸟优选</title>
</head>
<body style="margin: 0;">
<div class="soubg">
    <div class="sou">
        <span class="fr">
        	<span class="fl">
                <c:choose>
                    <c:when test="<%= userSession == null%>">
                        <a href="${path}/jbs/Regist.jsp" style="color:##02A4F8;">免费注册</a>&nbsp;|&nbsp;
                        <a href="${path}/jbs/Login.jsp" style="color:##02A4F8;">马上登录</a>
                    </c:when>
                    <c:otherwise>
                        <%=userSession.getLoginname()%> |&nbsp;<a href="${path}/User">个人中心</a> | <a href="${path}/Orders">我的订单</a> |
                        <a href="${path}/Cart#showCart">购物车</a>
                    </c:otherwise>
                </c:choose>&nbsp;
            </span>
        </span>
    </div>
</div>
<div class="m_top_bg">
    <div class="top">
        <div class="m_logo"><a href="<%=path%>/Index"><img src="${path}/jbs/images/logo1.png"/></a></div>
    </div>
</div>
<!--End Header End-->
<div class="i_bg bg_color">
    <!--Begin 用户中心 Begin -->
    <div class="m_content">
        <div class="m_left">
            <div class="left_n">管理面板</div>
            <div class="left_m" style="padding: 0">
                <div class="left_m_t t_bg2">会员中心</div>
                <ul>
                    <a href="${path}/User" ><li>用户信息</li></a>
                    <a href="${path}/Address"><li>地址管理</li></a>
                    <a href="${path}/jbs/Member_Collect.jsp"><li>我的收藏</li></a>
                </ul>
            </div>
            <div class="left_m" style="padding: 0">
                <div class="left_m_t t_bg1">订单中心</div>
                <ul>
                    <a href="${path}/Orders"> <li style="background-color: #02A4F8;color: #FFFFFF">我的订单</li></a>
                </ul>
            </div>
            <div class="left_m" style="padding: 0">
                <div class="left_m_t t_bg3">安全中心</div>
                <ul>
                    <a href="${path}/jbs/Member_Safe.jsp"><li>账户安全</li></a>
                </ul>
            </div>
        </div>
        <div class="m_right">
            <p></p>
            <div class="mem_tit">我的订单</div>
            <c:forEach items="${requestScope.ordersList}" var="item" varStatus="i">
                <div style="margin-bottom: 30px;">
                    <div style="background-color: #02A4F8;width: 870px;color: white;padding: 10px 30px">
                        <span>订单号：${item.serial}<br></span>
                        <span>下单时间: ${item.createTime} <br></span>
                        <span>邮寄信息：${item.userAddress} <br></span>
                    </div>
                    <table border="0" class="order_tab" style="width:930px; text-align:center; margin-bottom:30px;"
                           cellspacing="0" cellpadding="0">
                        <tr>
                            <td  colspan="2">商品信息</td>
                            <td width="15%">规格</td>
                            <td width="10%">件数</td>
                            <td width="10%">金额</td>
                            <td width="10%">产品状态</td>
                                <%--                    <td width="15%">操作</td>--%>
                        </tr>
                        <c:forEach items="${item.detail}" var="detail" varStatus="i">
                        <tr><td width="10%" style="padding: 0"><a href="${path}/details?id=${detail.good}"><img src="${detail.pic}" width="100%"></a></td>
                        <td><a href="${path}/details?id=${detail.good}">${detail.name}</a></td>
                        <td>${detail.SUK}</td>
                            <td>${detail.amount}</td>
                        <td>¥${detail.singeCost}</td>
                        <td>${detail.stat}</td></tr></c:forEach>
                        <tr> <td colspan="6" align="right" style="color: #02A4d9;font-weight: bold;font-size: 20px;height: 50px">订单总金额:¥${item.cost}</td></tr>
                    </table>

                </div>
            </c:forEach>
        </div>
        <!--End 用户中心 End-->
        <!--Begin Footer Begin -->
        <div class="b_btm_bg b_btm_c">
            <div class="b_btm">
                <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;"
                       cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="72"><img src="${path}/jbs/images/b1.png" width="62" height="62"/></td>
                        <td><h2>正品保障</h2>正品行货 放心购买</td>
                    </tr>
                </table>
                <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;"
                       cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="72"><img src="${path}/jbs/images/b2.png" width="62" height="62"/></td>
                        <td><h2>满38包邮</h2>满38包邮 免运费</td>
                    </tr>
                </table>
                <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;"
                       cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="72"><img src="${path}/jbs/images/b3.png" width="62" height="62"/></td>
                        <td><h2>天天低价</h2>天天低价 畅选无忧</td>
                    </tr>
                </table>
                <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;"
                       cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="72"><img src="${path}/jbs/images/b4.png" width="62" height="62"/></td>
                        <td><h2>准时送达</h2>收货时间由你做主</td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="btmbg">
            <div class="btm">
                <a href="https://beian.miit.gov.cn">备案/许可证编号：鄂ICP备20008779号-1</a> <br />本站仅供个人学习实践，无实际购买功能
            </div>
        </div>
        <!--End Footer End -->
    </div>

</body>


<!--[if IE 6]>
<script src="${path}/jbs/js/zh_CN.js"></script>
<![endif]-->
</html>
